﻿@model BLL.SanPham

@{
    ViewBag.Title = "Thêm mới sản phẩm";
}

<div class="conten_title">
    <div class="row">
        <div class="col-md-4">
            <div class="col-md-2">

                <img src="~/Images/icon-48-category-add.png" />
            </div>
            <div class="col-md-10">
                <h4>Thêm Sản Phẩm</h4>
            </div>

        </div>
        <div class="col-md-7">

            <div class="col-md-7">

            </div>
            <!-- end --->
            <div class="col-md-5 conten_title_right ">
                <a href="/QLCongNo/Index">
                    <img style="width:32px;" src="" />

                    <br />
                    back
                </a>
                <a href="#">
                    <span class="icon-32-trash"></span>
                    Delete
                </a>
                <a href="/QLCongNo/Add">
                    <span class="icon-32-new"></span>
                    new
                </a>


            </div>

        </div>
    </div>



</div>
<!-- End conten_title-->

<div class="content_table">
    <fieldset class="adminform">
        <legend>Thêm Sản phẩm</legend>
        <div class="row">


            @using (Html.BeginForm("Create", "SanPham", FormMethod.Post,
            new { enctype = "multipart/form-data", @class = "form-horizontal" }))
            {
                <div class="col-md-6 table_left">

                  
                   
                    <div class="form-group">
                        @Html.LabelFor(a => a.TenSP, new { @class = "col-sm-4 form-label" })
                        <div class="col-sm-6">
                            @Html.TextBoxFor(a => a.TenSP, new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(a => a.GiaSP, new { @class = "col-sm-4 form-label" })
                        <div class="col-sm-6">
                            @Html.TextBoxFor(a => a.GiaSP, new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(a => a.DonViTinh, new { @class = "col-sm-4 form-label" })
                        <div class="col-sm-6">
                            @Html.TextBoxFor(a => a.DonViTinh, new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(a => a.GhiChu, new { @class = "col-sm-4 form-label" })
                        <div class="col-sm-6">
                            @Html.TextAreaFor(a => a.GhiChu, new { @class = "form-control" })
                        </div>
                    </div>

                </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            @Html.LabelFor(a => a.NhaSX, new { @class = "col-sm-4 form-label" })
                            <div class="col-sm-6">
                                @Html.TextBoxFor(a => a.NhaSX, new { @class = "form-control" })
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.LabelFor(a => a.NgaySX, new { @class = "col-sm-4 form-label" })
                            <div class="col-sm-6">
                                @Html.TextBoxFor(s => s.NgaySX, "{0:MM/dd/yyyy}", new { @class = "form-control", @id = "ngaysanxuat" })
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.LabelFor(a => a.NgayHetHan, new { @class = "col-sm-4 form-label" })
                            <div class="col-sm-6">
                                @Html.TextBoxFor(s => s.NgayHetHan, "{0:MM/dd/yyyy}", new { @class = "form-control" ,@id="ngayhethan" })
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.LabelFor(a => a.GioiThieuSP, new { @class = "col-sm-4 form-label" })
                            <div class="col-sm-6">
                                @Html.TextAreaFor(a => a.GioiThieuSP, new { @class = "form-control" })
                            </div>
                        </div>
                       

                    </div>

                    <div class="row">
                        <div class="col-md-5">

                        </div>
                        <div class="col-md-2">
                            <input type="submit" value="Thêm" class="btn btn-default" />
                        </div>
                        <div class="col-md-5">

                        </div>
                    </div>
            }
            <!----- left --->



        </div>
    </fieldset>

</div>

@section scripts{

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

<script>
        $(function () {
            $("#ngayhethan").datepicker();
        });
        $(function () {
            $("#ngaysanxuat").datepicker();
        });
</script>


}

